<!-- 关于弹窗 -->
<template>
    <div class="popup-overlay" v-show="showOverlay">
      <div class="popup-content">
        <!-- 弹窗内容 -->
        <button class="close-button" @click="hidePopup">关闭</button>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        showOverlay: false,
      };
    },
    methods: {
      showPopup() {
        this.showOverlay = true;
      },
      hidePopup() {
        this.showOverlay = false;
      },
    },
  };
  </script>
  
  <style scoped>
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease; 
  }
  
  .popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
  }
  
  .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .popup-overlay.show {
    opacity: 1;
  }
  </style>